package com.example.movie.data.movie.model.vo

import com.example.movie.common.constants.Constants.Movie.ACTOR_TYPE_NAME
import java.io.Serializable

class MovieActorVo : Serializable {
    var movieActorId = 0
    var actorId = 0
    var movieId = 0

    /**
     * 1.导演,2演员,3副导演 ,4编剧,5制片人 ,6监制,7音乐,8摄影师,9剪辑师 ,10艺术指导,11美术指导,12服装师
     */
    var actorType = 0
    var actorName: String? = null
    var movieName: String? = null
    var cimg: String? = null
    val typeName: String
        get() = ACTOR_TYPE_NAME[actorType - 1]
    val actorTypeName: String
        get() = ACTOR_TYPE_NAME[actorType - 1]

    override fun toString(): String {
        return "编号:$movieActorId,演员:$actorId,电影:$movieId"
    }
}